package com.huawei.hwclouds.lubanops.demo.order.biz.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.huawei.hwclouds.lubanops.demo.common.biz.Mapper;
import com.huawei.hwclouds.lubanops.demo.order.biz.mapper.OrdersMapper;
import com.huawei.hwclouds.lubanops.demo.order.biz.model.OrdersModel;
import com.huawei.hwclouds.lubanops.demo.order.biz.param.OrdersParam;

/**
 * @author y00438022
 * @since 2020/8/17
 **/
@Service
public class OrdersService extends ConfigBizServiceBase<OrdersModel, OrdersParam> {

    @Autowired
    private OrdersMapper mapper;

    @Override
    public Mapper<OrdersModel, OrdersParam> getMapper() {
        return mapper;
    }

    public void deleteByUserId(String userId) {
        mapper.deleteByUserId(userId);
    }

    public void clear() {
        mapper.clear();
    }
}
